<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<h:head>
	<meta charset="utf-8" />
	<title>Livraria Java Web</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta name="description" content="" />
	<meta name="author" content="" />

	<!-- Le styles -->
	<link href="css/bootstrap.css" rel="stylesheet" />
	<style type="text/css">
body {
	padding-top: 60px;
	padding-bottom: 40px;
}
</style>
</h:head>

<h:body>
	<h:form id="form">
		<div class="navbar navbar-inverse navbar-fixed-top">
			<div class="navbar-inner">
				<div class="container">
					<button type="button" class="btn btn-navbar" data-toggle="collapse"
						data-target=".nav-collapse">
						<span class="icon-bar"></span> <span class="icon-bar"></span> <span
							class="icon-bar"></span>
					</button>
					<a class="brand" href="index.jsf">Livraria Java Web</a>
					<div class="nav-collapse collapse">
						<ul class="nav">
							<li><a href="index.jsf">Home</a></li>
							<li><a href="carrinho.jsf">Carrinho</a></li>
							<h:panelGroup rendered="#{usuarioMB.usuarioLogado ne null}">
								<li><a href="perfil.jsf">Perfil</a></li>
								<li><h:commandLink action="#{usuarioMB.sair}">Sair</h:commandLink></li>
							</h:panelGroup>
							<h:panelGroup rendered="#{usuarioMB.usuarioLogado eq null}">
								<li><a href="login.jsf">Login</a></li>
								<li><a href="cadastro.jsf">Cadastro</a></li>
							</h:panelGroup>
						</ul>
					</div>
					<!--/.nav-collapse -->
				</div>
			</div>
		</div>

		<div class="container">
			<ui:insert name="corpo"/>
			<hr />

			<footer>
			<p>&copy; Java Web 2013</p>
			</footer>
		</div>
	</h:form>
	<!-- /container -->

	<!-- Le javascript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="js/jquery.js"></script>
	<script src="js/bootstrap.js"></script>
</h:body>
</html>